<!DOCTYPE html>
<html>
<head>
<title>Test</title>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jslib/jquery-1.8.3.js"></script>
<link rel="stylesheet" type="text/css" href="jMailAddr.css">
<script type="text/javascript" src="jMailAddr.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sender").jMailAddr({
			width : '99%'
		});
		$("#recever").jMailAddr();
	});

	function getValue() {
		var value=$("#sender").jMailAddr('getValue');
		alert(value);
	}
	function setValue() {
		$("#sender").jMailAddr('setValue','qq@qq.com');
	}
</script>
</head>

<body>
	<div>
		<div>
			<input type="text" id="sender" />
		</div>
		<div>
			<a href="javascript:;" onclick="getValue()">getValue</a>
			<!--  -->
			<a href="javascript:;" onclick="setValue()">setValue</a>
		</div>
		<br /> <br />
		<div>
			<input type="text" id="recever" />
		</div>
		<br /> <br />
		<div class="noime jma_div_txt" id="toAreaCtrl" style="cursor: text;">
			<div data-value="asdfasf" title="该地址格式有错误 ，请双击修改" style="float:left;white-space:nowrap;" class="jma_addr_base jma_addr_error ">
				<b>asdfasf</b><span class="jma_semicolon">;</span>
			</div>
			<div data-value="xul0038@qq.com" title="xul0038@qq.com" style="float:left;white-space:nowrap;" class="jma_addr_base jma_addr_normal ">
				<b>xul0038</b> <span> &lt;xul0038@qq.com&gt; </span> <span class="jma_semicolon">;</span>
			</div>
			<div data-value="ww@163.com" title="ww@163.com" style="float:left;white-space:nowrap;" class="jma_addr_base jma_addr_normal ">
				<b>ww<span class="jma_domain">@163.com</span> </b> <span class="jma_semicolon">;</span>
			</div>
			<div style="float:left;border:none;overflow:hidden;width:13px;" class="jma_addr_text">
				<input type="text" style="border:none;outline:none;-webkit-appearance:none;width:100%;ime-mode:active" class="jma_js_input">
			</div>
			<div style="border: medium none; margin: 0px; padding: 0px; clear: both;">
				<input type="text" tabindex="-1" style="position:absolute;border:none;padding:0;width:10px;left:-9999px;top:-9999px;">
			</div>
		</div>
	</div>

</body>
</html>
